var strScript='<script type="text/javascript" language="javascript">
  parent.document.inputform.message.value+="\\n';
  if(strExt=="gif"||strExt=="jpg"||strExt=="bmp"||strExt=="png"||strExt=="tif"){
    strScript+="[img]"+filePath+"[/img]";
  }else if(strExt=="wma"||strExt=="mp3"||strExt=="avi"||strExt=="wmv"||strExt=="asf"){
    strScript+="[wmp]"+filePath+"[/wmp]";
  }else if(strExt=="ra"||strExt=="rm"||strExt=="rmvb"){
    strScript+="[rm]"+filePath+"[/rm]";
  }else if(strExt=="swf"){
    strScript+="[swf]"+filePath+"[/swf]";
  }else if(strExt=="mov"){
    strScript+="[qt]"+filePath+"[/qt]";
  }else{
    strScript+="[file="+filePath+"]"+lang["click_download"]+"[/file]";
  }
  strScript+="\"</script>";
<div class="upload-done">
    <%=strScript%>
    <%=lang["upload_done"]%>
    &nbsp;
    <input type="button" value=" <%=lang["back"]%> " onclick="window.history.back()" class="button" />
</div>
